{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "4\n"
     ]
    }
   ],
   "source": [
    "#获取最小值所在的地方\n",
    "l1=[3,4,5,6,2,3,4]\n",
    "\n",
    "min_index=l1.index(min(l1))\n",
    "print(min_index)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[2.0, 3.0]\n"
     ]
    }
   ],
   "source": [
    "#计算点集合的均值\n",
    "points=[[1,1],[3,5]]\n",
    "# [2,3]\n",
    "# # [2,3]\n",
    "# points=[[1,1,1,1],[2,2,2,2]]\n",
    "# [1.5,1.5,1.5,1.5]\n",
    "# # # [1.5,1.5,1.5,1.5]\n",
    "# points=[[1,1,1,1],[3,6,9,3],[2,2,2,2]]\n",
    "# [2,3,4,2]\n",
    "import numpy as np\n",
    "print(list(np.mean(points,axis=0)))"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.5"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
